Repository navigation
feat(blog): full-transformer forward + training slideshows (and restore video embed) - #5
Merged
Merged
Conversation
Two frame-player figures rendering the transformer as a stack of layers: `forward` walks a prediction pass (embedding lookup, attention, feed-forward, the repeated middle layers, the final layer, then dot-product scoring), and `trainpass` walks a training step (input, layers, prediction, error, then a teal backprop pass updating weights + embeddings). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the four bare 3Blue1Brown YouTube links with a responsive grid of thumbnail facades that load the cookieless player only on click (fast, private, dependency-free). Reordered into chapter order (5, 6, 7, then the TNG talk). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two full-transformer slideshows to the LLM Part 1 post, and restores the YouTube-embed work that was stranded when #4 merged.
Two new frame-player figures
Both render the transformer as a vertical stack of layers with a forward-flowing highlight (same FramePlayer system as the other figures: theme-aware tokens, keyboard/ARIA, reduced-motion aware).
forward(placed after "That is the whole forward pass") — a prediction pass: select embeddings → attention (layer 1) → feed-forward (layer 1) → the repeated middle layers → the final layer → dot-product scoring for the next token. Each step lights up in turn; the predicted token appears at the end.trainpass(placed after "Now step back and notice one thing about all of this") — a training step: input + embeddings → the full layer stack → a (wrong) prediction → error vs the real next token → a teal backprop pass that nudges every weight and the input tokens' embeddings.Also: restores the YouTube embed (was orphaned)
PR #4 was merged at the draft-flip commit, just before the video-embed commit landed, so
origin/main(and the live site) still had the 4 bare links. This PR cherry-picks that commit back, soYouTubeGrid.astroand the click-to-play grid return.Verification
npm run buildclean. Built page has all 13 figures, the YouTube grid (4 video ids),draft: false, and 0 bare links. New figures are em/en-dash-free.Note: I could not capture screenshots — this environment's headless-Chromium screenshot subsystem hangs on every page (even a trivial static one), though the DOM renders fine. Please give the two new figures a visual once-over in the browser.
🤖 Generated with Claude Code